package com.cddx.logistics.service;

import com.cddx.logistics.domain.dto.MaterialQueryDTO;
import com.cddx.logistics.domain.pojo.Material;
import com.cddx.logistics.domain.vo.MaterialVO;
import com.cddx.logistics.util.model.R;
import com.github.pagehelper.PageInfo;
import org.springframework.web.multipart.MultipartFile;

public interface MaterialService {
    PageInfo<MaterialVO> queryPage(MaterialQueryDTO queryDTO);
    boolean add(Material material);
    boolean update(Material material);
    boolean delete(Long id);
    boolean deleteBatch(String ids);
    R importExcel(MultipartFile file) throws Exception;

    R getMaterialByInventory(Long storageLocationId);
}